﻿@{
    Dictionary<string, string> langs = new Dictionary<string, string>()
    {
        { "English", "en" },
        { "Español", "es" }
    };

    var currentCulture = new System.Globalization.CultureInfo(Culture).TwoLetterISOLanguageName;
}

@Html.DropDownList("culture", new SelectList(langs, "Value", "Key", currentCulture))

<script type="text/javascript">
$(document).ready(function()
{
    $("#culture").val('@currentCulture');

    $("#culture").change(function () {
        var culture = this.value;

        if(culture == "en")
            document.location = "@Url.Action((string)ViewContext.RouteData.Values["action"], new { lang = "en" })";

        if(culture == "es")
            document.location = "@Url.Action((string)ViewContext.RouteData.Values["action"], new { lang = "es" })";
    });
});
</script>